//
//  WBNavigationController.swift
//  Weibo-Swift
//
//  Created by law on 2018/6/1.
//  Copyright © 2018年 JKing. All rights reserved.
//

import UIKit

class WBNavigationController: UINavigationController {
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        
        viewController.hidesBottomBarWhenPushed = (viewControllers.count > 0)
        
        super.pushViewController(viewController, animated: animated)
    }

}
